package com.zdp.applet.rabbit;

import com.zdp.common.constant.RabbitConstants;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.ExchangeBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author sesshomaru
 * @date 2021/7/11 12:20
 */
@Configuration
public class RabbitAppletConfig {

    @Bean
    public DirectExchange appletExchange() {
        return ExchangeBuilder.directExchange(RabbitConstants.APPLET_EXCHANGE).build();
    }
}
